package com.googlecode.jnarwhal.event;

/**
 * A Listener is used to implement specific behavior if a event was called. The
 * EventManager will call the method onEvent if the event was registered to this
 * listener.
 * 
 * @author Chris
 * 
 */
public interface Listener {

	/**
	 * Called if this listener is registered to listen to a given event.
	 * 
	 * @param delta
	 *            used for time calculations
	 * @param e
	 *            the event that was called
	 */
	public void onEvent(double delta, Event e);

}
